FROM openjdk:8-jdk-alpine
ADD ./docker/app.jar app.jar
ENV TZ Asia/Shanghai
EXPOSE 7000

#使用验证码字体包进行测试。第一步将apk源替换为国内阿里源。没有第一步将下载难产
RUN echo -e 'https://mirrors.aliyun.com/alpine/v3.6/main/\nhttps://mirrors.aliyun.com/alpine/v3.6/community/' > /etc/apk/repositories \
    && apk update \
    && apk upgrade \
    && apk --no-cache add ttf-dejavu fontconfig

ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar -Dspring.config.location=/config/application.yml app.jar
